You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there any way to use a variable, e.g. {{myField}} in the system prompt in the yml file? I would like to test and compare my prompts using the comparer functionality but at run-time my code needs to dynamically replace certain values in the system prompt. I can obviously have my code look and replace a fixed value used in the yaml prompt but that make for somewhat in-elegant code. Here is what I would ideally like to do:
...
messages:
- role: system
content: >-
Create oData filter expressions using {{field_names}}...
- variables:
filter_names: Age, Name, ...
QuestionAsk and answer questions about GitHub features and usageModelsDiscussions related to GitHub Models
1 participant
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Select Topic Area
Question
Body
Is there any way to use a variable, e.g. {{myField}} in the system prompt in the yml file? I would like to test and compare my prompts using the comparer functionality but at run-time my code needs to dynamically replace certain values in the system prompt. I can obviously have my code look and replace a fixed value used in the yaml prompt but that make for somewhat in-elegant code. Here is what I would ideally like to do:
Beta Was this translation helpful? Give feedback.
All reactions